package com.zdy.im.user.entity;

import com.sixeco.framework.common.api.ApiDesc;
import com.sixeco.framework.common.data.BaseEntity;
import com.sixeco.framework.core.db.ext.DS;
import com.zdy.im.user.ImDatasourceName;

/**
 * @Title: ImRoomUserShip.java
 * @Description: 群与用户关系的数据模型
 * @Author 作者 : zdy
 * @CreateDate 创建时间: 2021-02-30
 * @version V1.0.0
 * ----------------------------------------------------------------------------
 *  modifyer    modifyTime                 comment
 *
 * ----------------------------------------------------------------------------
 *
 */
@DS(ImDatasourceName.IM_DATA_NAME)
public class ImRoomUserShip extends BaseEntity{

private static final long serialVersionUID = 1L;




 		/** status 删除状态(1-正常,0-已删除)  */
 		@ApiDesc(value = "删除状态(1-正常,0-已删除)", required = 0)
 		private int status;

 		/** roomId 群id  */
 		@ApiDesc(value = "群id", required = 0)
 		private long roomId;

 		/** userId 用户id  */
 		@ApiDesc(value = "用户id", required = 0)
 		private long userId;

 		/** nickName 用户群昵称/备注昵称  */
 		@ApiDesc(value = "用户群昵称/备注昵称", required = 0)
 		private String nickName;

 		/** userRole 类型 0 用户，1.管理员，99.群主   */
 		@ApiDesc(value = "类型 0 用户，1.管理员，99.群主 ", required = 0)
 		private int userRole;

 		/** roomSet 群设置 0不接受消息 1接收消息  */
 		@ApiDesc(value = "群设置 0不接受消息 1接收消息", required = 0)
 		private int roomSet;

 		/** remarks 群备注  */
 		@ApiDesc(value = "群备注", required = 0)
 		private String remarks;

		@ApiDesc(value = "群员禁言(1-已禁言,0-未禁言)", required = 0)
		private int forbidSpeech;

    public static ImRoomUserShip build(){
        return new ImRoomUserShip();
    }

 		public void setStatus( int status){
 		 		this.status = status ; 
 		 		}
 		public ImRoomUserShip toStatus( int status){
 		 		this.status = status ; 
 		 		 return this ;
 		}

 		public int getStatus(){
 		 		return this.status;
 		}
 		public void setRoomId( long roomId){
 		 		this.roomId = roomId ; 
 		 		}
 		public ImRoomUserShip toRoomId( long roomId){
 		 		this.roomId = roomId ; 
 		 		 return this ;
 		}

 		public long getRoomId(){
 		 		return this.roomId;
 		}
 		public void setUserId( long userId){
 		 		this.userId = userId ; 
 		 		}
 		public ImRoomUserShip toUserId( long userId){
 		 		this.userId = userId ; 
 		 		 return this ;
 		}

 		public long getUserId(){
 		 		return this.userId;
 		}
 		public void setNickName( String nickName){
 		 		this.nickName = nickName ; 
 		 		}
 		public ImRoomUserShip toNickName( String nickName){
 		 		this.nickName = nickName ; 
 		 		 return this ;
 		}

 		public String getNickName(){
 		 		return this.nickName;
 		}
 		public void setUserRole( int userRole){
 		 		this.userRole = userRole ; 
 		 		}
 		public ImRoomUserShip toUserRole( int userRole){
 		 		this.userRole = userRole ; 
 		 		 return this ;
 		}

 		public int getUserRole(){
 		 		return this.userRole;
 		}
 		public void setRoomSet( int roomSet){
 		 		this.roomSet = roomSet ; 
 		 		}
 		public ImRoomUserShip toRoomSet( int roomSet){
 		 		this.roomSet = roomSet ; 
 		 		 return this ;
 		}

 		public int getRoomSet(){
 		 		return this.roomSet;
 		}
 		public void setRemarks( String remarks){
 		 		this.remarks = remarks ; 
 		 		}
 		public ImRoomUserShip toRemarks( String remarks){
 		 		this.remarks = remarks ; 
 		 		 return this ;
 		}

 		public String getRemarks(){
 		 		return this.remarks;
 		}


		public ImRoomUserShip toForbidSpeech(int forbidSpeech) {
			this.forbidSpeech = forbidSpeech;
			return this;
		}

		public int getForbidSpeech() {
			return forbidSpeech;
		}

		public void setForbidSpeech(int forbidSpeech) {
			this.forbidSpeech = forbidSpeech;
		}
}